﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manage/Base.Master" AutoEventWireup="true" CodeBehind="ProductClassList.aspx.cs" Inherits="Exhibition.Manage.ProductClassList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

     <input type="button" id="btnAdd" onclick="block()" class="bt_wb1" value="添加" />
    <br/>
     <br/>
    <dx:ASPxTreeList ID="treeList" runat="server" Width="100%" AutoGenerateColumns="False">
        <Columns>
            <dx:TreeListDataColumn FieldName="ClassName" Caption="分类名称" VisibleIndex="0"/>
            <dx:TreeListTextColumn Caption="操作" VisibleIndex="1" >



            <DataCellTemplate>
            
                <input type="button" id="btnEditor" class="bt_wb1" value="编辑" onclick="block(<%# Eval("ID") %>)" />
           
            </DataCellTemplate>
        </dx:TreeListTextColumn>


        </Columns>

             <SettingsBehavior ExpandCollapseAction="NodeDblClick"  />

         <Settings GridLines="Both" ShowFooter="true" />

    </dx:ASPxTreeList>
    <script type="text/javascript">



        function block(cid) {
            
            var demo = $("#showDemoBox");
            var iframe = demo.find("#iframe");
            iframe.attr("src", "ProductClassDetail.aspx?id="+cid  );

            $.blockUI({
                message: demo, css: {
                    width: '1000px',
                    left: ($(window).width() - 1000) / 2 + 'px',
                    height: ($(window).height() + 500) + 'px',

                }
            });
        }

        function unblock() {
            $.unblockUI();

        }

    </script>

</asp:Content>
